import { createRouter, createWebHistory } from 'vue-router'
import AppView from '@/views/AppView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 配置元路由
    {
      path: '/',
      redirect: '/app'
    },
    // 首页
    {
      path: '/app',
      name: 'HomeView',
      component: AppView,
    }
  ]
})

export default router
